Treasury Secretary Janet L. Yellen said an agreement was close. She also rebuked China’s lending practices and called for more debt relief.